import { createWebHashHistory, createRouter } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
import { errorRoutes } from '@/router/modules/errorRoutes'
import { fullscreenRoutes } from '@/router/modules/fullscreenRoutes'

/**
 * 加载路由
 */
const allRoutes: Array<RouteRecordRaw> = [
  ...fullscreenRoutes,
  ...errorRoutes,
];

const router = createRouter({
  history: createWebHashHistory(),
  routes: allRoutes
})

export default router